From 42aaf2e8b47110183e567cdaef3971a5069bde46 Mon Sep 17 00:00:00 2001 From: "kaf24@firebug.cl.cam.ac.uk" Date: Sat, 11 Mar 2006 10:49:28 +0100 Subject: [PATCH] Changeset 9134 introduced a caching mechanism when xenbus_switch_state is invoked. This causes a problem in the resume part of a suspend-resume cycle due to the backend not seeing that a state in the frontend was set. This patch fixes this in the TPM frontend driver. Signed-off-by: Stefan Berger --- linux-2.6-xen-sparse/drivers/xen/tpmfront/tpmfront.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/linux-2.6-xen-sparse/drivers/xen/tpmfront/tpmfront.c b/linux-2.6-xen-sparse/drivers/xen/tpmfront/tpmfront.c index 62e3d568a1..527a8f8201 100644 --- a/linux-2.6-xen-sparse/drivers/xen/tpmfront/tpmfront.c +++ b/linux-2.6-xen-sparse/drivers/xen/tpmfront/tpmfront.c @@ -310,7 +310,8 @@ again: goto abort_transaction; } - err = xenbus_switch_state(dev, xbt, XenbusStateInitialised); + err = xenbus_printf(xbt, dev->nodename, + "state", "%d", XenbusStateInitialised); if (err) { goto abort_transaction; } -- 2.30.2